package com.fyl.pattern.strategy;

public class Client {
    public static void main(String[] args) {
        //春节来了 使用春节促销活动
        SaleMan saleMan = new SaleMan(new StrategyA());
        saleMan.saleManShow();
        //中秋节
        saleMan.setStrategy(new StrategyB());
        saleMan.saleManShow();
        //圣诞节
        saleMan.setStrategy(new StrategyC());
        saleMan.saleManShow();
    }
}
